#include<set>
#include<string>
#include<iostream>
using namespace std;

int main()
{
	set<string> S;
	set<string>::iterator j;
	string t;
	while(cin>>t)
		S.insert(t);

	for(j = S.begin(); j != S.end(); ++j)
		cout<<*j<<endl;

	return 0;
}



